package com.xmb.quick.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author huangping
 * @since 2020-03-11
 */
@TableName("sys_user")
public class SysUser extends Model<SysUser> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(hidden=true)
    private String id;
    /**
     * 用户账号
     */
    @ApiModelProperty(value="账号", required = true)
    @TableField("user_code")
    private String userCode;
    /**
     * 用户名称
     */
    @TableField("user_name")
    private String userName;
    /**
     * 电话
     */
    @TableField("user_phone")
    private String userPhone;
    /**
     * 年龄
     */
    @TableField("user_age")
    private String userAge;
    /**
     * 性别
     */
    @TableField("user_sex")
    private String userSex;
    /**
     * 地址
     */
    @TableField("user_addr")
    private String userAddr;
    /**
     * 邮箱
     */
    @TableField("user_email")
    private String userEmail;
    /**
     * 部门id
     */
    @TableField("department_id")
    private String departmentId;
    /**
     * 角色
     */
    @TableField("role_id")
    private String roleId;
    /**
     * 微信openid
     */
    @ApiModelProperty(hidden=true)
    @TableField("open_id")
    private String openId;
    /**
     * 密码
     */
    @TableField("user_password")
    private String userPassword;
    /**
     * 创建人
     */
    @ApiModelProperty(hidden=true)
    @TableField("create_user")
    private String createUser;
    /**
     * 创建时间
     */
    @ApiModelProperty(hidden=true)
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty(hidden=true)
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty(hidden=true)
    @TableField(exist=false)
    private String departmentName;
    
    @ApiModelProperty(hidden=true)
    @TableField(exist=false)
    private String roleName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDepartmentName() {
		return departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserAge() {
        return userAge;
    }

    public void setUserAge(String userAge) {
        this.userAge = userAge;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public String getUserAddr() {
        return userAddr;
    }

    public void setUserAddr(String userAddr) {
        this.userAddr = userAddr;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

	@Override
	public String toString() {
		return "SysUser [id=" + id + ", userCode=" + userCode + ", userName=" + userName + ", userPhone=" + userPhone
				+ ", userAge=" + userAge + ", userSex=" + userSex + ", userAddr=" + userAddr + ", userEmail="
				+ userEmail + ", departmentId=" + departmentId + ", roleId=" + roleId + ", openId=" + openId
				+ ", userPassword=" + userPassword + ", createUser=" + createUser + ", createTime=" + createTime
				+ ", updateTime=" + updateTime + ", departmentName=" + departmentName + ", roleName=" + roleName + "]";
	}
}
